package stool.chainofresponsibility;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/13
 */
public class GeneralManager extends Manager{

    public GeneralManager(String name) {
        super(name);
    }

    @Override
    public void requestApplication(Request request) {

        switch (request.getRequestType()) {
            case LEAVE:
            case PAY_RISE:
            case OT:
            case PROMOTION:
                System.out.println("GeneralManager");
                break;
            default:
                break;
        }
    }
}
